<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org" xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">

<table id="configTable" align="center" leftmargin="0" topmargin="0" border=1 bordercolor="#add9c0" width="80%"
       xmlns:th="http://www.w3.org/1999/xhtml">
    <tbody>
    <tr>
        <td align="center" colspan="7">配置列表</td>
    </tr>
    <tr>
        <td align="center">配置key</td>
        <td align="center">配置value</td>
        <td align="center">配置描述</td>
        <td align="center">最后修改人</td>
        <td align="center">创建时间</td>
        <td align="center">修改时间</td>
        <td align="center">操作</td>
    </tr>
    <th:block th:if="${not #lists.isEmpty(configList)}">
        <tr th:each="config, configStatus: ${configList}" th:id="${config.id}">
            <td align="center" th:name="config_key">
                <input type="text" th:value="${config.config_key}" th:readonly="true"
                       style="border-style: solid; border-width: 0; font-size:18px"/>
            </td>
            <td align="center" th:name="config_value">
                <input type="text" th:value="${config.config_value}" th:readonly="true"
                       style="border-style: solid; border-width: 0; font-size:18px"/>
            </td>
            <td align="center" th:name="config_desc">
                <input type="text" th:value="${config.config_desc}" th:readonly="true"
                       style="border-style: solid; border-width: 0; font-size:18px"/>
            </td>
            <td th:text="${config.operator}" align="center"/>
            <td th:text="${config.createTime}" align="center"/>
            <td th:text="${config.updateTime}" align="center"/>
            <td align="center">
                <button th:id="${config.id}" th:text="删除" onclick="deleteConfigById(this.id)"></button>
                <button th:id="${config.id}" th:text="编辑" onclick="updateConfigById(this.id)"></button>
            </td>
        </tr>
    </th:block>
    </tbody>
</table>
<script data-th-src="@{../js/admin/admin.js?r=1234}"></script>
<script data-th-src="@{../js/common/jquery.min.js}"></script>